<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Locadora de Veiculos</title>
	<h:outputStylesheet name="styles-PSC.css" library="css"></h:outputStylesheet>
</h:head>
<h:body>
	<f:view>
	<h:form>
				<p:dialog header="Aluguel de Veículo" widgetVar="dlg"
			showEffect="slide" width="450" modal="true" visible="true"
			resizable="false" closable="false" draggable="true">
			<p:panelGrid columns="2"  width="350" rendered="#{empty loginBean.usuarioLogado}">
				<p:column>Login: </p:column>
				<p:column><p:inputText value="#{loginBean.login}" required="true" requiredMessage="Preencha o login"></p:inputText> </p:column>
				<p:column>Senha: </p:column>
				<p:column><p:password value="#{loginBean.senha}" required="true" requiredMessage="Preencha a senha"></p:password> </p:column>
				<p:column><p:commandButton value="Logar" action="#{loginBean.efetuarLogin}" ajax="false"></p:commandButton> </p:column>
				<p:messages></p:messages>				
			</p:panelGrid>
</p:dialog>
</h:form>
	</f:view>
</h:body>
</html>